package hardware;

import graphics.Bitmap2D;

public class Display2D {

public static native void clear();

public static native void setPixel(int x, int y, short color); 	
public static native void setTopLED(int index, short color);
public static native void setSideLED(int index, short color);
public static native int getRowCount();
public static native int getColumnCount();
public static native void doRepaint();
public static native void print8x8Char(char index,short color,int x, int y);
public static native void print5x5Char(char index,short color,int x, int y);
public static native void drawLine(int x,int y,int dx,int dy, short color);
public static native void _display2DBitmap(int xPos,int yPos,short[] data);



public static void display2DBitmap(int xPos,int yPos,Bitmap2D bitmap)
{
	_display2DBitmap(xPos,yPos,bitmap.data);
}

}

